<!DOCTYPE html>
<html>
<head>
    <title>箱子管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="/css/bootstrap-responsive.css" rel="stylesheet" media="screen">
    <link rel="stylesheet" type="text/css" href="/css/style.css">
    <script src="/lib/jq/jquery-2.1.1.min.js"></script>
    <script src="/lib/jq/bootstrap.min.js"></script>
</head>
<body style="margin:15px;">
<div id="lert"></div>
<% if (success) { %>
<div class="alert alert-success">
    <h4><%= success %></h4>
</div>
<% } %>
<% if (error) { %>
<div class="alert alert-error">
    <h4><%= error %></h4>
</div>
<% } %>
<legend>添加设备</legend>
<form style="margin-left: 25%" action="/box_management/create_device"  method="post" enctype="multipart/form-data" name="form1" class="form-horizontal">
    <div class="form-group">
        <label for="inputfile">选择文件：</label>
        <input type="file" id="inputfile" name="device_data">
        <p class="help-block">上传设备数据系统自动添加设备和页面并绑定。</p>
    </div>
    <div class="form-group" style="margin-top: 10px;">
        <button type="submit" class="btn btn-default">提交</button>
    </div>
    <div class="form-group" style="margin-top: 30px;">
        <a href="/doc/demo.xlsx">点击下载示例文件</a>
    </div>
</form>
</body>
</html>